import request from '@/utils/request'

// 查询销售计划信息列表
export function listSalesPlan(query) {
  return request({
    url: '/sales/salesPlan/list',
    method: 'post',
    data: query
  })
}

// 查询销售计划信息详细
export function getSalesPlan(id) {
  return request({
    url: '/sales/salesPlan/' + id,
    method: 'get'
  })
}

// 删除销售计划信息
export function delSalesPlan(id) {
  return request({
    url: '/sales/salesPlan/delete/' + id,
    method: 'post'
  })
}

// 新增销售计划信息
export function addSalesPlan(data) {
  return request({
    url: '/sales/salesPlan/add',
    method: 'post',
    data: data
  })
}

// 修改销售计划信息
export function updateSalesPlan(data) {
  return request({
    url: '/sales/salesPlan/update',
    method: 'post',
    data: data
  })
}

export function auditSalesPlan(id){
  return request({
    url: '/sales/salesPlan/audit/' + id,
    method: 'post'
  })
}